POV-Ray : Newsgroups : povray.newusers : Coupla "newb" questions... : Re: Coupla "newb" questions... Server Time
29 Jul 2024 12:21:05 EDT (-0400)
  Re: Coupla "newb" questions...  
From: Frango com Nata
Date: 10 Jan 2006 12:30:00
Message: <web.43c3edfdb43d912cde6a74b0@news.povray.org>
Well, we shouldn't expect it otherwise, since...

>  blob {
>  threshold 0.5
>  #declare Length = 0;
>  #while ( Length >= -30 )
>   #declare Scale = 2;

..... this loop...

>   #while ( Scale >= 0.25 )
>
>    #end

..... is terminated here, without altering Scale from its initial value 2:
it'll never drop below 0.25, so making the execution everlasting.

>    sphere { <0,0,0>, 20, 1 scale <1,1,0.9>
>    translate <Length,0,0>
>    scale Scale
>   #declare Length = Length - 0.25;
>   #declare Scale = Scale - 0.1;
>
>    #end
>
>     Let me know what you think, oh, and welcome to povray.
>
>        ~Steve~

I think they should try this instead:

blob {
  threshold 0.5
  #declare Length = 0;
  #while ( Length >= -30 )
    #declare Scale = 2;
    #while ( Scale >= 0.25 )
      sphere { <0,0,0>, 20, 1 scale <1,1,0.9>
        translate <Length,0,0>
        scale Scale
      }
      #declare Scale = Scale - 0.1;
    #end
   #declare Length = Length - 0.25;
  #end
}


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.